<?php
/* @var $this RoleController */
/* @var $model Role */

$this->breadcrumbs=array(
	'Management'=>array('/site/management/'),
	'Maintenance'=>array('/site/maintenance/'),	
	'Roles'=>array('/role/admin'),
	$model->name,
);

$this->menu=array(
	//array('label'=>'List Role', 'url'=>array('index')),
	array('label'=>'Create Role', 'url'=>array('create')),
	array('label'=>'Update Role', 'url'=>array('update', 'id'=>$model->idrole)),
	array('label'=>'Delete Role', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->idrole),'confirm'=>'Are you sure you want to delete this item?')),
	array('label'=>'Manage Roles', 'url'=>array('admin')),
);
?>

<h1>Viewing Role #<?php echo $model->idrole; ?> : <?php echo $model->name; ?> </h1>

<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		//'idrole',
		'name',
		array(
			'name'=>'Can Create/Edit Roles',
			'value'=>Role::getBooleanValue($model->can_create_edit_roles)),		
		array(
			'name'=>'Can Create/Edit Users',
			'value'=>Role::getBooleanValue($model->can_create_edit_users)),	
		array(
			'name'=>'Can Create/Edit Shifts',
			'value'=>Role::getBooleanValue($model->can_create_edit_shifts)),	
		array(
			'name'=>'Can Create/Edit QShifts',
			'value'=>Role::getBooleanValue($model->can_create_edit_qshifts)),		
		array(
			'name'=>'Can Create Callbacks',
			'value'=>Role::getBooleanValue($model->can_create_callbacks)),		
		array(
			'name'=>'Can Edit Callbacks',
			'value'=>Role::getBooleanValue($model->can_edit_callbacks)),	
		array(
			'name'=>'Can Create Shift Change',
			'value'=>Role::getBooleanValue($model->can_create_shift_change)),	
		array(
			'name'=>'Can Edit Shift Change',
			'value'=>Role::getBooleanValue($model->can_edit_shift_change)),		
		array(
			'name'=>'Can Create Q-Shift Change',
			'value'=>Role::getBooleanValue($model->can_create_qshift_change)),		
		array(
			'name'=>'Can Edit Q-Shift Change',
			'value'=>Role::getBooleanValue($model->can_edit_qshift_change)),
		'team_relation.short_name',
	),
)); ?>
